/*
 * Copyright (C) 2005 - 2030 YGSoft.Inc All Rights Reserved.
 * YGSoft.Inc PROPRIETARY/CONFIDENTIAL.Use is subject to license terms.
 */

package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.Banner;

/**
 * Spring Boot应用程序主类.
 * 用于启动Spring Boot应用程序并配置基本参数.
 * 
 * @author dingdayong
 */
@SpringBootApplication
public class DemoApplication {

	/**
	 * 应用程序入口点.
	 * 配置并启动Spring Boot应用程序.
	 * 
	 * @param args 命令行参数
	 */
	public static void main(String[] args) {
		// 1. 创建 SpringApplication 实例
        SpringApplication app = new SpringApplication(DemoApplication.class);
        // 2. 明确设置应用类型为非 Web
        app.setWebApplicationType(WebApplicationType.NONE);
		app.setBannerMode(Banner.Mode.OFF);
        // 3. 运行应用
        app.run(args);		
	}
}
